#ifndef FRAME_HPP
#define FRAME_HPP

#include "../ressource/ImageRessource.hpp"
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>


class Frame
{
public:

	Frame(ImageRessource* resource);
	Frame(ImageRessource* resource, sf::IntRect subRect);
    // Copy Frame;
    Frame(const Frame &frame);

	// Get SubRect
    sf::IntRect SubRect() const;

	// Set SubRect
	void SetSubRect(sf::IntRect subRect);

	// Get a pointer to ImageRessource
    ImageRessource* ImageResource() const;

	// Set ImageResource
	void SetImageResource(ImageRessource* resource);


private:
	ImageRessource * _resource;
	sf::IntRect m_subRect;

};

#endif
